package com.winbomb.simulife.impl.events;

import com.winbomb.simulife.World;
import com.winbomb.simulife.framework.Pixmap;
import com.winbomb.simulife.game.Assets;
import com.winbomb.simulife.impl.BaseEvent;

public class NewTermEvent extends BaseEvent {

	public NewTermEvent(World world) {
		super(world);
	}

	@Override
	public Pixmap getAnimation() {
		return Assets.test_new_term;
	}

	@Override
	public String getDescription() {
		return "开学了";
	}

	@Override
	public boolean isEnable() {
		if (!master.getIdentity().isStudent()) {
			return false;
		}
		// 每年3月和9月开始新学期
		return (world.getMonth() == 3 || world.getMonth() == 9);
	}
}
